#ifndef SPYSERVER_H
#define SPYSERVER_H

#include <QtCore>
#include <QtNetwork>
#include "spymon.h"
#include "spythread.h"

class SpyServer : public QTcpServer
{
    Q_OBJECT

public:
    SpyServer(QObject *parent = 0);
    ~SpyServer();

    SpyMon  *spyMon;

signals:
    void log(int, QString);

protected:
    void incomingConnection(int socketDescriptor);

private:
    qint64 blocksize;
    bool startNet();
};

#endif // SPYSERVER_H
